// DOM中传值 类型
// type Props = {
//   className:string,
// }
// 或者
interface Props {
  className:string,
  title?: string | undefined,
  children:React.ReactNode
}
function Button(props:Props){
  const { className,title,children } = props
  return <button className={ className }>click me {title} --- {children}</button>
}
function App() {
  return <> <Button className="test" title="text" >
    click parent ---
    <span>-- 我是span</span>
  </Button></>
}

export default App
